import request from '@/utils/request'

// 查询学院组卷题列表
export function listCollegePaperQuestion(query) {
  return request({
    url: '/system/collegePaperQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询学院组卷题详细
export function getCollegePaperQuestion(id) {
  return request({
    url: '/system/collegePaperQuestion/' + id,
    method: 'get'
  })
}

// 新增学院组卷题
export function addCollegePaperQuestion(data) {
  return request({
    url: '/system/collegePaperQuestion',
    method: 'post',
    data: data
  })
}

// 修改学院组卷题
export function updateCollegePaperQuestion(data) {
  return request({
    url: '/system/collegePaperQuestion',
    method: 'put',
    data: data
  })
}

// 删除学院组卷题
export function delCollegePaperQuestion(id) {
  return request({
    url: '/system/collegePaperQuestion/' + id,
    method: 'delete'
  })
}

// 导出学院组卷题
export function exportCollegePaperQuestion(query) {
  return request({
    url: '/system/collegePaperQuestion/export',
    method: 'get',
    params: query
  })
}